-- GENERATED SPELL FOR [Void Traveler] --


function spell0_19226(pUnit, Event) --@Empowering Shadows,n/a--
pUnit:FullCastSpellOnTarget(33783,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19226', 45265, 1)
end

function spell1_19226(pUnit, Event) --@Empowering Shadows,n/a--
pUnit:FullCastSpellOnTarget(39364,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19226', 45252, 1)
end

function spell2_19226(pUnit, Event) --@Shadow Nova,Self--
pUnit:FullCastSpellOnTarget(33846,pUnit)
pUnit:RegisterEvent('Sorts_19226', 565, 1)
end

function Sorts_19226(pUnit, Event)
local choix_sorts_19226 = math.random(0, 2)
if choix_sorts_19226 == 0 then
pUnit:RegisterEvent('spell0_19226', 1, 1)
end
if choix_sorts_19226 == 1 then
pUnit:RegisterEvent('spell1_19226', 1, 1)
end
if choix_sorts_19226 == 2 then
pUnit:RegisterEvent('spell2_19226', 1, 1)
end
end

function mob19226_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19226', math.random(1500, 3000), 1)
end

function mob19226_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19226_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19226_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19226, 1, 'mob19226_Action')
RegisterUnitEvent(19226, 2, 'mob19226_Leave')
RegisterUnitEvent(19226, 3, 'mob19226_Kill')
RegisterUnitEvent(19226, 4, 'mob19226_Die')
